﻿/**
 * @author sminutoli
 * version 1.0
 */
import com.dinmax.flash.draw.control.loader.*

class LoaderViewLinkage
implements LoaderView {
	
	private var loader:LoaderBridge;
	private var linkageID:String;
	
	public function LoaderViewLinkage(linkageID:String) {
		this.linkageID = linkageID;
	}
	
	function setPos(percent:Number):Void{
		loader.setPos(percent);
	};
	function setText(msg:String):Void{
		loader.setText(msg);
	};
	function error(msg:String):Void{
		loader.error(msg)
	};
	function border(container:MovieClip):MovieClip{
		loader = LoaderBridge( container.attachMovie(this.linkageID, "loader", container.getNextHighestDepth()));
		return container;
	};
	function reset():Void {
		
	};
	
};